package com.fjb.pojo.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author hemiao
 * @since 2019-12-28
 */
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父级id
     */
    private Integer parentId;

    /**
     * 父级id 列表   101112  10%
     */
    private String parentIds;

    /**
     * 权限类型  1、菜单   2、按钮
     */
    private Integer permissionType;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 权限code
     */
    private String permissionCode;

    private String permissionStyle;

    /**
     * 排序  越小约靠前
     */
    private Integer sort;

    /**
     * 级别   1、2、3、4
     */
    private Integer permissionLevel;

    /**
     * 快捷功能   1 开启   2关闭（默认关闭）
     */
    private Integer quick;

    /**
     * 权限状态    1、正常   2、停用
     */
    private Integer permissionStatus;

    private Integer createUserId;

    private LocalDateTime createTime;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }
    public Integer getPermissionType() {
        return permissionType;
    }

    public void setPermissionType(Integer permissionType) {
        this.permissionType = permissionType;
    }
    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }
    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }
    public String getPermissionStyle() {
        return permissionStyle;
    }

    public void setPermissionStyle(String permissionStyle) {
        this.permissionStyle = permissionStyle;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getPermissionLevel() {
        return permissionLevel;
    }

    public void setPermissionLevel(Integer permissionLevel) {
        this.permissionLevel = permissionLevel;
    }
    public Integer getQuick() {
        return quick;
    }

    public void setQuick(Integer quick) {
        this.quick = quick;
    }
    public Integer getPermissionStatus() {
        return permissionStatus;
    }

    public void setPermissionStatus(Integer permissionStatus) {
        this.permissionStatus = permissionStatus;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "SysPermission{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", parentIds=" + parentIds +
        ", permissionType=" + permissionType +
        ", permissionName=" + permissionName +
        ", permissionCode=" + permissionCode +
        ", permissionStyle=" + permissionStyle +
        ", sort=" + sort +
        ", permissionLevel=" + permissionLevel +
        ", quick=" + quick +
        ", permissionStatus=" + permissionStatus +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateTime=" + updateTime +
        ", description=" + description +
        "}";
    }
}
